package com.weitu.archives.personArchives.mapper;

import com.weitu.archives.personArchives.entity.SafetyAssessmentRewardPunishmentLedger;
import com.weitu.archives.personArchives.entity.SafetyAsssessmentRewardPunishmentLedgerRelation;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/5/15.
 */
public interface SafetyAssessmentRewardPunishmentLedgerMapper {

    int queryCount(Map<String,Object> map);
    List<SafetyAssessmentRewardPunishmentLedger> queryList(Map<String,Object> map);

    int insertSafetyAssessmentRewardPunishmentLedger(SafetyAssessmentRewardPunishmentLedger punishmentLedger);

    int insertSafetyAssessmentRewardPunishmentLedgerRelation(List<SafetyAsssessmentRewardPunishmentLedgerRelation> ledgerRelationList);

    SafetyAssessmentRewardPunishmentLedger queryRewardPunishLedgerById(String id);

    List<SafetyAsssessmentRewardPunishmentLedgerRelation> queryListRelationById(String id);

    int deleteSafetyAssessmentRewardPunishmentLedgerRelation(String relationId);

    int updateSafetyAssessmentRewardPunishmentLedger(SafetyAssessmentRewardPunishmentLedger punishmentLedger);

    int deleteSafetyAssessmentRewardPunishmentLedger(String id);
    /**
     * 根据ID查数据
     * @param id
     * @return
     */
    SafetyAsssessmentRewardPunishmentLedgerRelation selectRelationById(String id);
    /**
     * 根据ID修改
     * @return
     */
    int updateRelation(SafetyAsssessmentRewardPunishmentLedgerRelation realation);

    /**
     * 插入联系
     * @param realation
     * @return
     */

    int insertRelation(SafetyAsssessmentRewardPunishmentLedgerRelation realation);
}
